<?php

class TaskTable extends Doctrine_Table
{
  public function addTasksQuery(Doctrine_Query $q = null)
  {
  	if (is_null($q))
    {
      $q = Doctrine_Query::create()
        ->from('task t');
    }
	$alias = $q->getRootAlias();	
    return $q;
  }

}